package P2;

import P1.Demo;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan(basePackages = "P5")
public class Config {

    @Bean
    public Demo bean(){

        return new Demo();


    }
}
